package cn.jiyun.service.impl;

import cn.jiyun.dao.StudentMapper;
import cn.jiyun.service.StudentService;
import com.alibaba.dubbo.config.annotation.Service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Auther:ASS
 * @Date:2022/12/7 15:04
 */
@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    StudentMapper studentMapper;

    @Override
    public PageInfo findPage(Integer pageIndex) {
        PageHelper.startPage(pageIndex,2);
       List<Map> list= studentMapper.findPage();
        return new PageInfo(list);
    }
}
